#ifndef __STREAM_LL_H
#define __STREAM_LL_H

#include "stm32f10x.h"
#include "stm32f10x_it.h"
#include "GPIO_STM32F10x.h"

#ifdef __cplusplus
 extern "C" {
#endif

/**
@param : input data
@return : low byte of the data
*/
uint8_t lowByte(uint16_t data);

/**
@param : input data
@return : high byte of the data
*/
uint8_t highByte(uint16_t data);

/**
@descripion: read bit value of data
@param :
    data : data to read
    n : bit to get
    b(for bitWrite) : value to write
@return : high byte of the data
*/
bool bitRead(uint8_t data, uint8_t n);
uint16_t word(uint8_t highbyte, uint8_t lowbyte);

#ifdef __cplusplus
 }
#endif

#endif
